/*
 * TEA5767.c
 *
 * Created: 2012-06-09 14:09:02
 *  Author: Sebastian_2
 */ 

#include "TEA5767.h"

void TEA5767_SetStation(uint16_t PLL) {
	uint8_t buffer[5];
	
	buffer[0] = (PLL >> 8); // unmuted, not in search mode, first 6 PLL bits set
	buffer[1] = PLL; // another 8 PLL bits set
	buffer[2] = 0x10; // high side injection, stereo on, both channels unmuted, port1 low
	buffer[3] = 0x16; // port2 low, not in standby, European FM band, 32.768kHz, mute off, HCC on, SNC on, port1 controlled by software
	buffer[4] = 0x00; // 32.768kHz, DTC 50us
	
	//TWI_MasterWrite(&gTWI_Master, TEA5767_ADDR, &buffer, 5);
}